import React from 'react';
function Comment(props) {
    return (
        <div className="Comment">
            <h2>我是welcome的子组件Comment</h2>
            <div className="UserInfo">
                <div className="UserInfo-name">
                    {props.author.name}
                </div>
                <div className="UserInfo-name">
                    {props.author.xx}
                </div>
            </div>
            <div className="Comment-text">
                {props.text}
            </div>
            <div className="Comment-date">
                {props.date}
            </div>
        </div>
    );
}
export default Comment;